#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/3/5
import socket

ip_port = ("127.0.0.1", 50007)

sk = socket.socket()
sk.connect(ip_port)

while True:
    msg = input(">>:").strip()
    sk.sendall(bytes(msg, encoding="utf8"))
    server_reply = sk.recv(1024)
    print(str(server_reply, "utf8"))
sk.close()


isinstance(obj,Foo);#判断一个实例是不是属于某个类

issubclass(Sub,Foo)# 判断子类是不是父类的派生类

